home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 01 / 3 / DISK0130.ZIP / CHANGE.MAN < prev    next >
Text File  |  1983-09-07  |  756b  |  32 lines

  1. .im man.im
  2. .NM change change patterns in text
  3. .SY change pattern [newstuff]
  4. .FU
  5. .ital change
  6. copies its input to its output except that
  7. each non-overlapping string that matches
  8. .ital pattern
  9. is replaced by the string
  10. .ital newstuff.
  11. A non-existent
  12. .ital newstuff
  13. implies deletion of the matched string.
  14. The patterns accepted by
  15. .ital change
  16. are the same as those used by
  17. .ital findp.
  18.  
  19. The replacement string
  20. .ital newstuff
  21. consists of zero or more of the following elements:
  22. .Q1
  23.    c   literal character
  24.    &   ditto, i.e., whatever was matched
  25.    \@c  escaped character c (e.g., \@&)
  26. .Q2
  27. .EG
  28. To parenthesize all sums and differences of identifiers:
  29. .Q1
  30. change "[a-zA-Z][a-zA-Z0-9]*[ ]*[+-][ ]*[a-zA-Z][a-zA-Z0-9]*" (&)
  31. .Q2
  32.